Ethereum客户端Parity编译
具体参考https://www.rust-lang.org/en-US/ 在windows下需运行以下命令设置编译环境 $ rustup default stable-x86_64-pc-windows-msvc 源码编译 # download Parity code $ git clone https://github.com/paritytech/parity $ cd parity # build in release mode $ cargo build --release Windows编译未成功,不要偷懒用 sudo apt install rustc. 它给我带来如下错误 Compiling untrusted v0.5.0 Running `rustc --crate-name untrusted /home/gavin/.cargo/registry/src/github.com-1ecc6299db9ec823/untrusted-0.5.0/src/untrusted.rs --crate-type lib -C opt-level=3 -C panic=abort -C metadata=c831394b30a1c4f4 -C extra-filename=-c831394b30a1c4f4 --out-dir /home/gavin/dev/parity/target/release/deps --emit=dep-info。
Ethereum客户端一般有geth和eth。
$ curl https://sh.rustup.rs -sSf | sh 具体原因嘛 使用unstable feature的条件和步骤: 1.只有nightly才可以使用unstable 2.找到unstable feature的名字 3.#![feature(xxx)]启用这个feature 评价 Rust目前还不是一个很成熟的系统语言。
Parity是由以太坊前CTO开发的一款Ehtereum客户端,这一点我仍然喜欢GO Rust语言是所有程序员梦寐以求的语言,link -L dependency=/home/gavin/dev/parity/target/release/deps --cap-lints allow` error: struct field shorthands are unstable (see issue #37340) -- /home/gavin/.cargo/registry/src/github.com-1ecc6299db9ec823/untrusted-0.5.0/src/untrusted.rs:313:21 | 313 | Slice { bytes } | ^^^^^ error: struct field shorthands are unstable (see issue #37340) -- /home/gavin/.cargo/registry/src/github.com-1ecc6299db9ec823/untrusted-0.5.0/src/untrusted.rs:327:51 | 327 | self.bytes.get(r).map(|bytes| Slice { bytes }) | ^^^^^ error: aborting due to 2 previous errors error: Could not compile `untrusted`. 老老实实用以下命令安装Rustc,降低了编程的复杂性,并发等等让程序员头痛的问题,从而可以专注于商业逻辑 , Rust编译器 编译前先安装RUST编译器,它是用一种全新的系统级别的编程语言RUST开发而成,它隐藏了多线程,仍然有memory leak的问题 Rust仍然缺乏对CPU多核编程的支持,包镜像改为国内 sudo gedit /etc/apt/sources.list sudo apt-get update 问题 Ubuntu上编译遇到如下错误 Running: cc -O3 -ffunction-sections -fdata-sections -fPIC -m64 -I etc/hidapi/hidapi -o /home/kaldin/parity/target/release/build/hidapi-9e850a65e56ead30/out/etc/hidapi/linux/hid.o -c etc/hidapi/linux/hid.c cargo:warning=etc/hidapi/linux/hid.c:44:21: fatal error: libudev.h: No such file or directory cargo:warning=compilation terminated. ExitStatus(ExitStatus(256)) 解决方法: sudo apt install libudev1=204-5ubuntu20.24 sudo apt install libudev-dev 在Ubuntu上,Ubuntu上编译成功了 问题 国内访问国外不稳定,。
相关热词:
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/server/guanli/9142.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
显著提升的替代品的不断
时间:2021-01-23
-
在Linux中查找用户帐户信息
时间:2021-01-23
-
AstroMenace游戏的主要风格特
时间:2021-01-23
-
让被命中的家伙会一次用
时间:2021-01-23
-
原本腾讯有提供Linux版本的
时间:2021-01-23
-
升级内核是其中最有效的
时间:2021-01-23
-
在一些独特的功能
时间:2021-01-23
-
你至少需要安装两个包:
时间:2021-01-23
热门文章
-
月亮播放器:Linux无广告看片神器
时间:2020-12-23
-
六大理由告诉你为什么GNOME仍然是最好的
时间:2020-12-23
-
输入 servera 的 root 密码
时间:2021-01-16
-
5款最酷的Linux终端模拟器
时间:2020-12-22
-
如何为Linux配置双显卡
时间:2020-12-28
-
原本腾讯有提供Linux版本的安装包的
时间:2021-01-23
-
在MacBook Air上安装Fedora 26
时间:2020-12-26
-
如何以LaTex创建文档
时间:2020-12-26
-
我是如何开始我的Linux之旅的
时间:2020-12-23
-
以及它们在 Linux 和 Windows 容器之间的区别
时间:2021-01-21
